package com.hl.mapper;

import com.hl.domain.Order;
import org.apache.ibatis.annotations.Param;

/**
* @author 好好学习
* @description 针对表【order】的数据库操作Mapper
* @createDate 2024-09-09 11:48:45
* @Entity com.hl.domain.Order
*/
public interface OrderMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    //动态添加order
    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    //根据用户id和课程id查看是否购买该课程---返回总个数
    int selectCountByUserAndCourse(@Param("userId") Long userId, @Param("courseId") Long courseId);


}
